//
//  KKSheetQuestionItem.m
//  Questionnaire
//
//  Created by leo on 16/1/26.
//  Copyright © 2016年 leo. All rights reserved.
//

#import "KKSheetQuestionItem.h"

@implementation KKSheetQuestionItem

- (void)setKk_SheetQuestionOption:(NSArray *)kk_SheetQuestionOption {
    
    NSMutableArray *items = [NSMutableArray array];
    for (NSDictionary *itemDictionary in kk_SheetQuestionOption) {
        
        KKSheetQuestionOptionItem *item = [KKSheetQuestionOptionItem new];
        [item kk_parserJsonDictionary: itemDictionary];
        [items addObject: item];
    }
    _kk_SheetQuestionOption = [NSMutableArray arrayWithArray: items];
}

- (KKSheetQuestionItemType)questionItemType {
    
    if (_kk_sqType == nil) {
        return KKSheetQuestionItemTypeFillInNormal;
    }
    
    NSInteger typeValue = [_kk_sqType longLongValue] % 100;
    
    return typeValue;
    
}

@end


@implementation KKSheetQuestionOptionItem


@end